package com.mxpio.erp.equipment.service.impl;

import com.mxpio.erp.common.equipment.entity.EquipmentUpkeepPlanDetailParam;
import com.mxpio.erp.common.equipment.service.EquipmentUpkeepPlanDetailParamService;
import com.mxpioframework.jpa.query.Criteria;
import com.mxpioframework.jpa.query.Operator;
import com.mxpioframework.system.service.impl.BaseServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 保养计划明细选项Service业务层处理
 *
 * @author Cheng
 * @date 2023-07-19
 */
@Service
public class EquipmentUpkeepPlanDetailParamServiceImpl extends BaseServiceImpl<EquipmentUpkeepPlanDetailParam> implements EquipmentUpkeepPlanDetailParamService {
    @Override
    public List<EquipmentUpkeepPlanDetailParam> selectByMainId(String mainId) {
        Criteria c = Criteria.create().addCriterion("detailId", Operator.EQ, mainId);
        return list(EquipmentUpkeepPlanDetailParam.class,c);
    }

}
